/* eslint-disable */
import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.VITE_BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('../views/home/index.vue'),
      meta: {
        title: '首页',
      },
      children: [
        {
          path: '/bigFileUpload',
          name: 'BigFileUpload',
          component: () => import('../views/upload/BigFileUpload.vue'),
          meta: {
            title: '大文件上传（分片上传）',
          }
        },
        {
          path: '/bigFileNewUpload',
          name: 'BigFileNewUpload',
          component: () => import('../views/upload/BigFileNewUpload.vue'),
          meta: {
            title: '大文件上传（断点续传）',
          }
        },
        {
          path: '/bigFileUploadMock',
          name: 'BigFileUploadMock',
          component: () => import('../views/upload/BigFileUploadMock.vue'),
          meta: {
            title: '大文件上传Mock',
          }
        },
        {
          path: '/streamOutput',
          name: 'StreamOutput',
          component: () => import('../views/out/StreamOutput.vue'),
          meta: {
            title: '流式输出',
          }
        },
        {
          path: '/aiChatStream',
          name: 'AIChatStream',
          component: () => import('../views/out/AIChatStream.vue'),
          meta: {
            title: '流式输出',
          }
        },
        {
          path: '/aiChat',
          name: 'chat',
          component: () => import('../views/ai/AIChat.vue'),
          meta: {
            title: '智能问答',
          }
        }
      ]
    }, 
  ]
})

export default router
